package com.example.authserver.repository;

import com.example.authserver.model.User;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

/**
 * @author cjw
 * @date 2020/10/15  14:11
 */

public interface JdbcUserDetailsRepository extends CrudRepository<User, Integer> {
    /**
     *  findByUsername
     * @param userName .
     * @return User
     */
    User findByUsername(String userName);
}
